//
//  Extension.swift
//  MevosSwift
//
//  Created by roy on 2017/4/18.
//  Copyright © 2017年 roy. All rights reserved.
//

import UIKit

extension UIColor {
    class func colorWithHexString (rgbValue: Int,rgbAlpha:CGFloat) -> UIColor {
        return UIColor(red: ((CGFloat)((rgbValue & 0xFF0000) >> 16)) / 255.0,
                                        green: ((CGFloat)((rgbValue & 0xFF00) >> 8)) / 255.0,
                                         blue: ((CGFloat)(rgbValue & 0xFF)) / 255.0,
                                        alpha: rgbAlpha)
             }
}
